<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('呈批领导选择')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-striped" id="data-contend">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/wsMail";
    $(function () {
        var options = {
            url: prefix + "/submitForApprovalJson",
            sortName: "submit_id",
            uniqueId: "submit_id",
            fixedColumns: true,
            fixedNumber: 3,
            showRefresh: false,
            pagination: false,
            rowStyle: {css: {'cursor':'pointer'}},
            onClickRow: onClickRow,
            columns: [{radio: true},
                {field: 'submit_id', title: 'submit_id', visible:false},
                {field: 'submit_name', title: '职务', align: 'center'},
                {field: 'name', title: '姓名', align: 'center',formatter:function (value){
                        return "<span style='color: #2752d5;'>"+value+"</span>";}}

            ]
        };
        $.table.init(options);
    });

    function getSelections() {
        return $("#bootstrap-table").bootstrapTable('getSelections');
    }

    function onClickRow(row, $element){
        $element[0].firstElementChild.firstElementChild.click();
    }
</script>
</body>
</html>